package com.qf.j2105.controller;



import com.qf.j2105.po.commonfun;
import com.qf.j2105.po.servetable;
import com.qf.j2105.po.tjtable;
import com.qf.j2105.service.FindFunservice;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class MyselfController {

    //注入service
    @Resource
    private FindFunservice findFunservice;

    //常用功能
    @GetMapping("/wode")
    public List<commonfun> findAllfuncation(){
        List<commonfun> findcommonfun = findFunservice.Findcommonfun();
        return findcommonfun;
    }
    //服务大厅
    @GetMapping("/fuwu")
    public List<servetable> findAllservefuncation(){
        List<servetable> findservefun = findFunservice.Findservefun();
        return findservefun;
    }
    //推荐服务
    @GetMapping("/tj")
    public List<tjtable> Findtjfuncation(){
        List<tjtable> findtjfun = findFunservice.Findtjfun();
        return findtjfun;
    }

}
